from django.urls import path, include
from rest_framework import routers

from . import views
router = routers.DefaultRouter()
router.register(r"posts", views.PostViewSet, basename="post")
router.register(r"categories", views.CategoryViewSet, basename="category")
router.register(r"tags", views.TagViewSet, basename="tag")
router.register(r"comments", views.CommentViewSet, basename="comment")
# router.register(r"search", views.PostSearchView, basename="search")

urlpatterns = [
    path('',include(router.urls))
]
